﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using QLCONGNOLIBS.Securities;

namespace QLCONGNOLIBS.Controllers
{
    public class CustomerControllers
    {
        private SqlConnection m_objConnection;
        private SecurityEntity m_objSecurity;
        private QLCONGNOLIBS.Models.CustomerModels m_objCustomerModels;

        public CustomerControllers(SqlConnection objConnection, SecurityEntity objSecurity)
        {
            m_objConnection = objConnection;
            m_objSecurity = objSecurity;
            m_objCustomerModels = new QLCONGNOLIBS.Models.CustomerModels(objConnection, m_objSecurity);
        }

        public QLCONGNOLIBS.Models.DbSetQLCNEn.ICustomerDataTable getCustomers()
        {
            return m_objCustomerModels.GetElements();
        }
    }
}
